#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QVector>
#include <mycoin.h>
class PlayScene : public QMainWindow
{
    Q_OBJECT
    int level = 0;
    QVector<QVector<int>> array = QVector<QVector<int>>(4, QVector<int>(4, 0));// 用户的二维数组数据
    MyCoin* coins[4][4];
public:
    explicit PlayScene(QWidget *parent = nullptr);
    PlayScene(int num);
    // 绘制背景
    void paintEvent(QPaintEvent *);
    bool isWin();
signals:
    void chooseSceneBack();
    void callAllCoinIsWin(bool win);
};

#endif // PLAYSCENE_H
